package com.rt.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.rt.common.annotation.Excel;
import com.rt.common.core.domain.BaseEntity;

import javax.validation.constraints.NotNull;

/**
 * 作答结果数据（难易度调整用）对象 rt_answer_data
 * 
 * @author Yg
 * @date 2022-04-21
 */
public class RtAnswerData extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 考试名称 */
    @Excel(name = "考试名称")
    private String examName;

    /** 试卷id */
//    @Excel(name = "试卷id")
    private Long examPaperId;

    /** 考生身份证号码 */
    @Excel(name = "考生身份证号码")
    private String studentId;

    /** 考试姓名 */
    @Excel(name = "考试姓名")
    private String studentName;

    /** 试题id */
    @NotNull(message = "试题id")
    @Excel(name = "试题id")
    private String questionId;

    /** 答案id */
//    @Excel(name = "答案id")
    private Long answerId;

    /** 得分 */
    @NotNull(message = "得分不能为空")
    @Excel(name = "得分")
    private Double result;

    // 错误率
    private Integer error;

    /** 分值 */
    @NotNull(message = "分值不能为空")
    @Excel(name = "分值")
    private Double score;

    /** 导入人 */
//    @Excel(name = "导入人")
    private String inputOperator;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
//    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date inputTime;

    public Integer getError() {
        return error;
    }

    public void setError(Integer error) {
        this.error = error;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setExamName(String examName) 
    {
        this.examName = examName;
    }

    public String getExamName() 
    {
        return examName;
    }
    public void setExamPaperId(Long examPaperId) 
    {
        this.examPaperId = examPaperId;
    }

    public Long getExamPaperId() 
    {
        return examPaperId;
    }
    public void setStudentId(String studentId) 
    {
        this.studentId = studentId;
    }

    public String getStudentId() 
    {
        return studentId;
    }
    public void setStudentName(String studentName) 
    {
        this.studentName = studentName;
    }

    public String getStudentName() 
    {
        return studentName;
    }
    public void setQuestionId(String questionId) 
    {
        this.questionId = questionId;
    }

    public String getQuestionId() 
    {
        return questionId;
    }
    public void setAnswerId(Long answerId) 
    {
        this.answerId = answerId;
    }

    public Long getAnswerId() 
    {
        return answerId;
    }
    public void setResult(Double result)
    {
        this.result = result;
    }

    public Double getResult()
    {
        return result;
    }
    public void setScore(Double score)
    {
        this.score = score;
    }

    public Double getScore()
    {
        return score;
    }
    public void setInputOperator(String inputOperator) 
    {
        this.inputOperator = inputOperator;
    }

    public String getInputOperator() 
    {
        return inputOperator;
    }
    public void setInputTime(Date inputTime) 
    {
        this.inputTime = inputTime;
    }

    public Date getInputTime() 
    {
        return inputTime;
    }

    @Override
    public String toString() {
        return "RtAnswerData{" +
                "id=" + id +
                ", examName='" + examName + '\'' +
                ", examPaperId=" + examPaperId +
                ", studentId='" + studentId + '\'' +
                ", studentName='" + studentName + '\'' +
                ", questionId='" + questionId + '\'' +
                ", answerId=" + answerId +
                ", result=" + result +
                ", error='" + error + '\'' +
                ", score=" + score +
                ", inputOperator='" + inputOperator + '\'' +
                ", inputTime=" + inputTime +
                '}';
    }
}
